package provadios;
import org.junit.Assert;

import org.junit.Before;
import org.junit.Test;

public class TestDios {
	
	public SubEs2 dios;
	
	@Before
	public void first(){
		dios = new SubEs2();
	}
	
	@Test
	public void test(){
		Assert.assertEquals(1,dios.q('a'));
		Assert.assertEquals(2,dios.q('b'));
		Assert.assertEquals(3,dios.q('c'));
		
		Assert.assertTrue(dios.q('a') == 1);
		Assert.assertTrue(dios.q('b') == 2);
		Assert.assertTrue(dios.q('c') == 3);
		Assert.assertTrue((dios.q('a') == 1)&&((dios.q('b')==2))&&(dios.q('c')==3));
		
		Assert.assertFalse(dios.q('a') == 2);
		Assert.assertFalse(dios.q('b') == 3);
		Assert.assertFalse(dios.q('c') == 1);
		
	}
	
	

}
